<!-- <template>
  <div class="about">
    <h1>This is an about page</h1>
  </div>
</template> -->
<template>
  <div class="analysisTask">     

      <ChartLine ref="chart_line_one"/>              
  </div>
</template>

<script>
import ChartLine from './ChartLint.vue'


export default{
   data(){
       return{
         name:'2019年',
         xData: ['01月', '03月', '06月', '09月', '12月'],
         yData: [30, 132, 80, 134,900],
      
       }
   },
   mounted () {
      const {name,xData,yData} = this
      console.log(this.$refs)
      this.$refs.chart_line_one.initChart(name,xData,yData)
   },
   components: {
      ChartLine,
   }
}
</script>